package main

import (
	"fmt"
)

func main() {
	var num int
	fmt.Println("请输入一个数字：")
	fmt.Scanln(&num)
	reversenum := 0
	for num > 0 {
		reversenum = reversenum*10 + num%10
		num /= 10
	}
	fmt.Println(reversenum)
}
